package com.kaikeba.service.impl;



import com.kaikeba.domain.User;
import com.kaikeba.mapper.UserMapper;
import com.kaikeba.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;

	
	public List<User> findAllUser() {
		System.out.println("测试缓存，第二次查询不走方法!!!");
		List<User> list = userMapper.findAll();
		return list;
	}

	@Override
	public Map<String, Object> redisMap() {
		return null;
	}


}
